package com.zzyl.mapper;


import com.zzyl.dto.UserDto;
import com.zzyl.entity.User;
import com.zzyl.entity.UserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

/**
* @author 恭喜发财
* @description 针对表【sys_user_role(用户角色关联表)】的数据库操作Mapper
* @createDate 2024-05-17 11:36:33
* @Entity com.zzyl.entity1.UserRole
*/

@Mapper
public interface UserRoleMapper {

    List<User> selectRoleByUserId(User user);


    Set<String> selectRoleIdByUserId(Long id);

    void insert(List<UserRole> userRoleList);

    void deleteUser(List<String> list);
}




